<%@ page contentType="text/html; charset=iso-8859-1" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>
<%@ include file="../inc/topo.jsp" %>
	<div id="breadcrumb">
		<s:text name="label.breadcrumb" />
		<a href="listarSitio.action"><s:text name="sitio.nome" />s</a>
	</div>
	<br/><h1><s:text name="label.listaDe" /><s:text name="sitio.nome" />s</h1><br/>
	<div id="toolbar">
		<a href="preAdicionarSitio.action"><s:text name="label.adicionar" /></a>
	</div>
	<br/><s:set name="list" value="listSitio" scope="request" />
	<c:set var="descricao"><s:text name="label.descricao" /></c:set>
	<c:set var="apagar"><s:text name="label.apagar" /></c:set>
	
	<%@ include file="../inc/mensagens.jsp" %><br />
	<div class="TbLEdit_Form">
		<display:table name="list" id="row" requestURI="listarSitio.action" pagesize="50">
			<display:column title="#" >
				<s:url id="editUrl" action="editarSitio.action">
					<s:param name="sitio.nuSitio">${row.nuSitio}</s:param>
				</s:url>
				<s:a href="%{editUrl}"><img src="images/b_edit.png" alt="Editar" /></s:a>
			</display:column>	
			<display:column property="noSitio" title="Nome" />
			<display:column property="deSitio" title="${descricao}" />
			<display:column property="url" title="Url" />
			<display:column property="noPastaArquivos" title="Pasta de Arquivos" />
			<display:column title="${apagar}" style="text-align:center;">
				<s:url id="apagar" action="confirmarApagarSitio.action">
					<s:param name="sitio.nuSitio">${row.nuSitio}</s:param>
				</s:url>
				<s:a href="%{apagar}"><img src="images/delete.gif" alt="Apagar" /></s:a>
			</display:column>
		</display:table>
	</div>
	<jsp:include page="../inc/final.jsp" />
